import Vue from 'vue'
import Router from 'vue-router'
import Index from '../pages/Index/Index'
import Broadcast from '../pages/Eva/Broadcast'
import AudioBook from '../pages/AudioBook/AudioBook'
import Group from '../pages/Group/Group'
import Mine from '../pages/Mine/Mine'
import login from '../pages/Mine/login'
import regist from '../pages/Mine/regist'
import PwdForget from '../pages/Mine/PwdForget'
import EvaPast from '../pages/Eva/EvaPast'
import EvaViewReport from '../pages/Eva/EvaViewReport'
Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/broadcast',
      name: 'Broadcast',
      component: Broadcast
    },
    {
      path: '/audioBook',
      name: 'AudioBook',
      component: AudioBook
    },
    {
      path: '/group',
      name: 'Group',
      component: Group
    },
    {
      path: '/mine',
      name: 'Mine',
      component: Mine
    },
    {
      path: '/Index',
      redirect: '/'
    },
    {
      path: '*',
      redirect: '/'
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path:'/regist',
      name:'regist',
      component:regist
    },
    {
      path:'/PwdForget',
      name:'PwdForget',
      component:PwdForget
    },
    {
      path:'/EvaPast',
      name:'EvaPast',
      component:EvaPast
    },
    {
      path:'/EvaViewReport',
      name:'EvaViewReport',
      component:EvaViewReport
    },

  ]
})
